package org.ehe.erp.domain.batch.bo;


import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.core.validate.AddGroup;
import org.ehe.common.core.validate.EditGroup;
import org.ehe.common.mybatis.core.domain.BaseEntity2;
import org.ehe.erp.domain.batch.ErpBatchInfo;

/**
 * 产品信息业务对象 erp_product
 *
 * @author zhangnn
 * @date 2025-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ErpBatchInfo.class, reverseConvertGenerate = false)
public class ErpBatchBo extends BaseEntity2 {

    private Long id;

    /**
     * 1采购批次、2付款批次
     */
    @NotBlank(message = "批次类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 1采购批次、2付款批次
     */
    @NotBlank(message = "批次类型名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String typeName;

}
